Protests erupted in Kashmir following the killing of Iran's Supreme Leader Ayatollah Ali Khamenei, leading to restrictions on movement and mobile internet speeds.
One of the terrorists was a lecturer by profession who had abdicated the government service and had joined the outfit.
Imran Khan's Pakistan Tehreek-e-Insaaf party has suffered setbacks in country's biggest ever by-polls for 41 national and provincial assembly constituencies, in which the ruling PML-N appeared to have consolidated its position.
The newly-announced cabinet is expected to take oath on Monday at the President's House.